package com.ruoyi.warning.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.ruoyi.warning.domain.http.DSResponse;
import com.ruoyi.warning.domain.http.LDevice;
import com.ruoyi.warning.domain.http.LPort;
import com.ruoyi.warning.domain.http.LService;

import java.util.List;

/**
 * <p>
 * 告警模版表 服务类
 * </p>
 *
 * @author chenhc
 * @since 2025-02-20
 */

public interface LibreService {

    //获取所有设备
    List<LDevice> getAllDevices();
    //获取设备的详细信息
    LDevice getDeviceDetail(String hostname) throws JsonProcessingException;
    //获取所有服务
    List<LService> getAllServices();
    //获取所有端口
    List<LPort> getAllPorts();
    //获取端口的详细信息
    LPort getPortDetail(String portId) throws JsonProcessingException;
    DSResponse getDSService(String content) throws JsonProcessingException;
}
